<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="html5plus://ready"></script>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/page/morepics.css" />
		<script src="../../js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div class="mui-content">
			<ul class="mui-row">
				<li v-cloak v-for="item in items" class="mui-col-sm-4 mui-col-xs-6">
					<div id="imgdic">
						<img v-lazy="item" class="pics-img" data-preview-src="" data-preview-group="2"/>
					</div>					
				</li>				
			</ul>
		</div>
		
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/function.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/md5.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/mui.previewimage.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/mui.zoom.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/vue-lazyload.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			mui.plusReady(function(){
				var self = plus.webview.currentWebview();
				var sid = self.sid;
				console.log(sid);
				
				mui.previewImage();
				Vue.use(VueLazyload, {
					preLoad: 1.3,
					error: '../../img/function/lodingerro.png',
					loading: '../../img/function/lodings.gif',
					attempt: 1
				});
				var sfpic = new Vue({
					el:'.mui-content',
					data:{
						items:[]
					}
				})
				var picsurl = getApiUrl('http://www.jiaoyou0.cn', 'userdata/sifangshow');

				function getpic(){
					mui.ajax(picsurl, {
						type: 'GET',
						dataType: 'json',
						timeout: 3000,
						data:{
							sid:sid
						},
						success: function(data) {
							if(data.code==200){
								console.log(JSON.stringify(data.data));	
								sfpic.items = data.data;
							}
						},
						error: function(xhr, type, errorThrown) {
							mui.toast('网络不好，重试下吧！')
						}
					})
				}
				getpic();
			})
			
		</script>
	</body>

</html>